libxl: Introduce FILLZERO
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Feb 2015 19:00:06 +0000 (19:00 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 26 Jun 2015 15:53:51 +0000 (16:53 +0100)
commita074278122b338fb08fa20ab30825e1366b2da68
tree50f339dd5341aa1da3f3705ccf0d195e6270dd61
parent005bc3b588e3e1bd07a97fd752ab17042c41f21b
libxl: Introduce FILLZERO

FILLZERO is a macro for memset(&foo,0,sizeof(foo)).  It eliminates the
possiblity to make the error memset(&foo,0,sizeof(&foo)).

No callers yet, but document it in CODING_STYLE.  (In accordance with
existing libxl policy, I haven't gone through all existing possible
call sites.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New in this version of the series.
tools/libxl/CODING_STYLE
tools/libxl/libxl_internal.h
tools/libxl/libxl_utils.h